package com.example.demo.service.impl;

import com.example.demo.dao.Blog_img;
import com.example.demo.mapper.Blog_imgMapper;
import com.example.demo.service.Blog_imgservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Blog_imgserviceimpl implements Blog_imgservice {
    @Autowired
    Blog_imgMapper blog_imgMapper;

    @Override
    public int deleteByPrimaryKey(Integer imgId) {
        return blog_imgMapper.deleteByPrimaryKey(imgId);
    }

    @Override
    public int insert(Blog_img record) {
        return blog_imgMapper.insert(record);
    }

    @Override
    public int insertSelective(Blog_img record) {
        return blog_imgMapper.insertSelective(record);
    }

    @Override
    public Blog_img selectByPrimaryKey(Integer imgId) {
        return blog_imgMapper.selectByPrimaryKey(imgId);
    }

    @Override
    public int updateByPrimaryKeySelective(Blog_img record) {
        return blog_imgMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Blog_img record) {
        return blog_imgMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Blog_img> index() {
        return blog_imgMapper.index();
    }
}
